package com.ruoyi.orders.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单支付对象 orders
 * 
 * @author ruoyi
 * @date 2024-12-26
 */
public class Orders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单唯一id */
    private Long id;

    /** 订单唯一编号 */
    @Excel(name = "订单唯一编号")
    private String orderNumber;

    /** 菜品id */
    @Excel(name = "菜品id")
    private Long menuId;

    /** 菜品名称 */
    @Excel(name = "菜品名称")
    private String dishName;

    /** 菜品数量 */
    @Excel(name = "菜品数量")
    private Long quantity;

    /** 总价格 */
    @Excel(name = "总价格")
    private BigDecimal totalPrice;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 支付编号 */
    @Excel(name = "支付编号")
    private String payNumber;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payAt;

    /** 支付状态 */
    @Excel(name = "支付状态")
    private String paymentStatus;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }
    public void setMenuId(Long menuId) 
    {
        this.menuId = menuId;
    }

    public Long getMenuId() 
    {
        return menuId;
    }
    public void setDishName(String dishName) 
    {
        this.dishName = dishName;
    }

    public String getDishName() 
    {
        return dishName;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setTotalPrice(BigDecimal totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice() 
    {
        return totalPrice;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setPayNumber(String payNumber) 
    {
        this.payNumber = payNumber;
    }

    public String getPayNumber() 
    {
        return payNumber;
    }
    public void setPayAt(Date payAt) 
    {
        this.payAt = payAt;
    }

    public Date getPayAt() 
    {
        return payAt;
    }
    public void setPaymentStatus(String paymentStatus) 
    {
        this.paymentStatus = paymentStatus;
    }

    public String getPaymentStatus() 
    {
        return paymentStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNumber", getOrderNumber())
            .append("menuId", getMenuId())
            .append("dishName", getDishName())
            .append("quantity", getQuantity())
            .append("totalPrice", getTotalPrice())
            .append("createdAt", getCreatedAt())
            .append("payNumber", getPayNumber())
            .append("payAt", getPayAt())
            .append("paymentStatus", getPaymentStatus())
            .toString();
    }
}
